package com.joinway.framework.bean.exception;

import com.joinway.framework.bean.constant.ErrorCodeConstants;


public class ValidationException extends InternalException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2427046579788634676L;

	public ValidationException() {
		super(ErrorCodeConstants.INVALID_DESC);
		this.code = ErrorCodeConstants.INVALID;
		this.description = ErrorCodeConstants.INVALID_DESC;
	}

	public ValidationException(String description) {
		super(description);
		this.code = ErrorCodeConstants.INVALID;
		this.description = description;
	}

	public ValidationException(String description, Throwable cause) {
		super(cause);
		this.code = ErrorCodeConstants.INVALID;
		this.description = description;
	}

	public ValidationException(String code, String description, Throwable cause) {
		super(cause);
		this.code = code;
		this.description = description;
	}

	public ValidationException(String code, String description) {
		super(description);
		this.code = code;
		this.description = description;
	}

//	public ValidationException(String message) {
//		super(message);
//		this.code = ErrorCodeConstants.INVALID;
//		this.description = ErrorCodeConstants.INVALID_DESC;
//	}

//	public ValidationException(Throwable cause) {
//		super(cause);
//		this.code = ErrorCodeConstants.INVALID;
//		this.description = ErrorCodeConstants.INVALID_DESC;
//	}

}
